package day7;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class Diaodaso {
    public static void main(String[] args) {
        int[] ar = {1, 3, 5, 7, 8, 9};
        int temp = 0;
        for (int i = 0; i < ar.length / 2; i++) {
            //ar[i],ar[ar.length-1-i]
            temp = ar[i];
            ar[i] = ar[ar.length - 1 - i];
            ar[ar.length - 1 - i] = temp;
        }
        System.out.println(Arrays.toString(ar));
    }
}
